import request from '@/utils/request'

// 位置列表
export function roomList(query) {
  return request({
    url: '/room/roomList',
    method: 'get',
    params: query
  })
}
//更新位置
export function updateRoom(data) {
  return request({
    url: '/room/updateRoom',
    method: 'post',
    data
  })
}
// 新增位置
export function addRoom(data) {
  return request({
    url: '/room/addRoom',
    method: 'post',
    data: data
  })
}
//删除位置
export function deleteById(query) {
  return request({
    url: '/room/deleteById',
    method: 'get',
    params: query
  })
}